package com.liang.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author 李昂
 * @since 2020-11-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class CComment implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 存储文章id
     */
    private Integer bid;

    /**
     * 评论id
     */
    @TableId(value = "cid")
    private String cid;

    /**
     * 评论人
     */
    private String id;

    /**
     * 评论时间
     */
    private String datetime;

    /**
     * 评论内容
     */
    private String container;

    //回复评论对象的昵称
    private String replyOne;


    @TableField(exist = false)
    private CUserDetail userDetail;

}
